package User;

import Book.BookList;
import Operation.IOperation;

public abstract class User {
    public String name;
    public IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doOperation(int choice, BookList bookList){
        this.iOperations[choice].work(bookList);//定义了一个在两种用户同时存入的执行操作的类的数组，并用数组的元素调用了相对的work方法
    }
}
